<!DOCTYPE html>
<html>
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>fonts</title>
    <style>

        /*weight表示字体的粗细, 字重能设置的属性大概如下 */
        .weight{
            font-weight: normal;
            font-weight: bold;

            /* bolder 和 lighter 是相对的,*/
            font-weight: bolder;
            font-weight: lighter;

            /* 设置成数值一般是100~900取值,但有些平台或字体到了某个数值再大也没有效果了 */
            font-weight: 200;

        }
    </style>
</head>
<body class="body" id="body">
    <div class="weight">你好 Hello World</div>
    <div style="font-style: italic;">斜体字</div>
    <div style="text-decoration: underline; text-decoration-color: aqua; ">下划线字</div>
    <div style="text-decoration: line-through;"> 线穿过 </div>
</body>
</html>